package al.work.test.message;

import java.util.List;
import al.work.dataserialize.buildserial.build_serialize;
import al.work.dataserialize.buildserial.i_stream_helper;

public class login {

/**
 * 账号登陆消息
 */
public static class bs_account_login extends build_serialize.bs_message_t {

    public static class bs_crt_new_helper implements build_serialize.bs_crt_new_helper<bs_account_login> {
        @Override
        public bs_account_login new_crt() { return new bs_account_login();}
        @Override
        public int length() { return 0; }
    }
    private static bs_account_login.bs_crt_new_helper s_new_helper_ = new bs_account_login.bs_crt_new_helper();
    public static bs_account_login.bs_crt_new_helper new_helper() { return s_new_helper_; }

    public bs_account_login base_value() { return this; }
    /**
     * 账号登陆消息
    * @return
     */
    public short u8() {
        return u8_.base_value();
    }
    /**
     * 账号登陆消息
    * @param _value
     */
    public void u8(short _value) {
        u8_.base_value(_value);
    }
    /**
     * 账号登陆消息
    * @return
     */
    public int u16() {
        return u16_.base_value();
    }
    /**
     * 账号登陆消息
    * @param _value
     */
    public void u16(int _value) {
        u16_.base_value(_value);
    }
    /**
     * 账号登陆消息
    * @return
     */
    public long u32() {
        return u32_.base_value();
    }
    /**
     * 账号登陆消息
    * @param _value
     */
    public void u32(long _value) {
        u32_.base_value(_value);
    }
    /**
     * 账号登陆消息
    * @return
     */
    public byte i8() {
        return i8_.base_value();
    }
    /**
     * 账号登陆消息
    * @param _value
     */
    public void i8(byte _value) {
        i8_.base_value(_value);
    }
    /**
     * 账号登陆消息
    * @return
     */
    public short i16() {
        return i16_.base_value();
    }
    /**
     * 账号登陆消息
    * @param _value
     */
    public void i16(short _value) {
        i16_.base_value(_value);
    }
    /**
     * 账号登陆消息
    * @return
     */
    public int i32() {
        return i32_.base_value();
    }
    /**
     * 账号登陆消息
    * @param _value
     */
    public void i32(int _value) {
        i32_.base_value(_value);
    }
    /**
     * 账号登陆消息
    * @return
     */
    public long i64() {
        return i64_.base_value();
    }
    /**
     * 账号登陆消息
    * @param _value
     */
    public void i64(long _value) {
        i64_.base_value(_value);
    }
    /**
     * 账号登陆消息
    * @return
     */
    public List<Byte> i8_array() {
        return i8_array_.base_value();
    }
    /**
     * 账号登陆消息
    * @return
     */
    public List<Byte> i8_list() {
        return i8_list_.base_value();
    }
    /**
     * 账号登陆消息
    * @return
     */
    public String ustring() {
        return ustring_.base_value();
    }
    /**
     * 账号登陆消息
    * @param _value
     */
    public void ustring(String _value) {
        ustring_.base_value(_value);
    }
    /**
     * 账号登陆消息
    * @return
     */
    public List<String> ustring_list() {
        return ustring_list_.base_value();
    }

    @Override
    protected int child_length() {
        return u8_.length() +
            u16_.length() +
            u32_.length() +
            i8_.length() +
            i16_.length() +
            i32_.length() +
            i64_.length() +
            i8_array_.length() +
            i8_list_.length() +
            ustring_.length() +
            ustring_list_.length();
    }

    @Override
    protected boolean child_serialize(i_stream_helper.i_out_stream _helper) {
        return this.u8_.serialize(_helper) &&
            this.u16_.serialize(_helper) &&
            this.u32_.serialize(_helper) &&
            this.i8_.serialize(_helper) &&
            this.i16_.serialize(_helper) &&
            this.i32_.serialize(_helper) &&
            this.i64_.serialize(_helper) &&
            this.i8_array_.serialize(_helper) &&
            this.i8_list_.serialize(_helper) &&
            this.ustring_.serialize(_helper) &&
            this.ustring_list_.serialize(_helper);
    }

    @Override
    protected boolean child_build(i_stream_helper.i_in_stream _helper) {
        return this.u8_.build(_helper) &&
            this.u16_.build(_helper) &&
            this.u32_.build(_helper) &&
            this.i8_.build(_helper) &&
            this.i16_.build(_helper) &&
            this.i32_.build(_helper) &&
            this.i64_.build(_helper) &&
            this.i8_array_.build(_helper) &&
            this.i8_list_.build(_helper) &&
            this.ustring_.build(_helper) &&
            this.ustring_list_.build(_helper);
    }

    /**
     * 账号登陆消息
     */
    private build_serialize.bs_crt_uint8 u8_ = new build_serialize.bs_crt_uint8((short)32);
    /**
     * 账号登陆消息
     */
    private build_serialize.bs_crt_uint16 u16_ = new build_serialize.bs_crt_uint16();
    /**
     * 账号登陆消息
     */
    private build_serialize.bs_crt_uint32 u32_ = new build_serialize.bs_crt_uint32();
    /**
     * 账号登陆消息
     */
    private build_serialize.bs_crt_int8 i8_ = new build_serialize.bs_crt_int8();
    /**
     * 账号登陆消息
     */
    private build_serialize.bs_crt_int16 i16_ = new build_serialize.bs_crt_int16();
    /**
     * 账号登陆消息
     */
    private build_serialize.bs_crt_int32 i32_ = new build_serialize.bs_crt_int32();
    /**
     * 账号登陆消息
     */
    private build_serialize.bs_crt_int64 i64_ = new build_serialize.bs_crt_int64();
    /**
     * 账号登陆消息
     */
    private build_serialize.bs_list_st<Byte,build_serialize.bs_crt_int8> i8_array_ = new build_serialize.bs_list_st<Byte,build_serialize.bs_crt_int8>(build_serialize.bs_crt_int8.new_helper());
    /**
     * 账号登陆消息
     */
    private build_serialize.bs_list_st<Byte,build_serialize.bs_crt_int8> i8_list_ = new build_serialize.bs_list_st<Byte,build_serialize.bs_crt_int8>(build_serialize.bs_crt_int8.new_helper());
    /**
     * 账号登陆消息
     */
    private build_serialize.bs_ustring_t ustring_ = new build_serialize.bs_ustring_t("33333333333");
    /**
     * 账号登陆消息
     */
    private build_serialize.bs_list_st<String,build_serialize.bs_ustring_t> ustring_list_ = new build_serialize.bs_list_st<String,build_serialize.bs_ustring_t>(build_serialize.bs_ustring_t.new_helper());
}

} // class login
